<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Admin panel | Dashboard</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <link href="<?php echo $view['assets']->getUrl('bootstrap/css/bootstrap.min.css') ?>" type="text/css" rel="stylesheet"  >
        <link href="<?php echo $view['assets']->getUrl('font-awesome/css/font-awesome.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- Ionicons -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/AdminLTE.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- Morris chart -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/morris/morris.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- jvectormap -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/jvectormap/jquery-jvectormap-1.2.2.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- Date Picker -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/datepicker/datepicker3.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- Daterange picker -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/daterangepicker/daterangepicker-bs3.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- bootstrap wysihtml5 - text editor -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css') ?>" type="text/css" rel="stylesheet"  >
        <!-- Theme style -->
        <link href="<?php echo $view['assets']->getUrl('admin-lte/css/AdminLTE.css') ?>" type="text/css" rel="stylesheet"  >

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="skin-blue">
        <header class="header">
            <a href="<?php echo $view['router']->generate('admin_home'); ?>" class="logo">
                Admin panel
            </a>
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span><?php echo $user->getUserName() ?> <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <img src="<?php echo $view['assets']->getUrl('admin-lte/img/avatar5.png') ?>" class="img-circle" alt="User Image" />
                                    <p>
                                        <?php echo $user->getUserName() ?>
                                    </p>
                                </li>
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-right">
                                        <a href="<?php echo $view['router']->generate('admin_deconnexion'); ?>" class="btn btn-default btn-flat">Deconnexion</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src="<?php echo $view['assets']->getUrl('admin-lte/img/avatar5.png') ?>" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>Bonjour, <?php echo $user->getUserName() ?></p>

                            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                        </div>
                    </div>
                    <!-- search form 
                    <form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="Search..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>-->
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_new_camp') ?>">
                                <i class="fa fa-th"></i> <span>Ajouter camps</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_list_camp') ?>">
                                <i class="fa fa-th"></i> <span>Liste  des camps</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_personnel_new') ?>">
                                <i class="fa fa-th"></i> <span>Ajouter personnel</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_list_personnel') ?>">
                                <i class="fa fa-th"></i> <span>Liste  des personnel</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_refugie_new') ?>">
                                <i class="fa fa-th"></i> <span>Ajouter Refugie</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_list_refugie') ?>">
                               <i class="fa fa-th"></i> <span>Liste  des refugies</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_vaccin_new') ?>">
                                <i class="fa fa-th"></i> <span>Ajouter un Vaccin</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_vaccin_update') ?>">
                                <i class="fa fa-th"></i> <span>Ajouter une quantité de vaccin</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_list_vaccin') ?>">
                               <i class="fa fa-th"></i> <span>Liste  des vaccins</span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo $view['router']->generate('admin_transfert_refugie') ?>">
                               <i class="fa fa-th"></i> <span>Transfert d'un refugie</span>
                            </a>
                        </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <!-- Main content -->
                <section class="content">
                      <?php
                        $types = array('warning', 'info', 'danger', 'success');
                        if($session)
                        {
                            foreach ($types as $type) 
                            {
                                foreach ($session->getFlashBag()->get($type, array()) as $message) 
                                {
                        ?>
                                <div class='alert alert-<?php echo $type  ?>'>
                                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
                                    <?php echo $message ?>
                                </div>
                        <?php
                                }
                            }
                        }
                    ?>
                    <?php $view['slots']->output('_content') ?>
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->


        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script src="<?php echo $view['assets']->getUrl('bootstrap/js/bootstrap.js') ?>" type="text/javascript"></script>
        <script src="<?php echo $view['assets']->getUrl('js/jquery-ui.min.js') ?>" type="text/javascript"></script>
        <!-- Morris.js charts -->
        <script src="<?php echo $view['assets']->getUrl('js/raphael-min.js') ?>"></script>
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/plugins/morris/morris.min.js') ?>" type="text/javascript"></script>
        <!-- Sparkline -->
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/plugins/sparkline/jquery.sparkline.min.js') ?>" type="text/javascript"></script>
        <!-- jvectormap
        <script src="js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
        <script src="js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script> -->
        <!-- jQuery Knob Chart 
        <script src="js/plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>-->
        <!-- daterangepicker -->
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/plugins/daterangepicker/daterangepicker.js') ?>" type="text/javascript"></script>
        <!-- datepicker -->
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/plugins/datepicker/bootstrap-datepicker.js') ?>" type="text/javascript"></script>
       
        <!-- Bootstrap WYSIHTML5 
        <script src="js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
        -->

        <!-- AdminLTE App -->
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/AdminLTE/app.js') ?>" type="text/javascript"></script>
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/AdminLTE/dashboard.js') ?>" type="text/javascript"></script>
        <script src="<?php echo $view['assets']->getUrl('admin-lte/js/AdminLTE/dashboard.js') ?>" type="text/javascript"></script>
        
    </body>
</html>
